<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>RestfulLinux: RFStream.h源文件</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">RestfulLinux
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- 制作者 Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="annotated.html"><span>数据结构</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>全局定义</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">RFStream.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="RFStream_8h.html">浏览该文件的文档。</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00012"></a>00012 <span class="preprocessor">#ifndef __RFSTREAM_H__ </span>
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#define __RFSTREAM_H__</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span>
<a name="l00015"></a>00015 <span class="comment">/*****************************************************************************/</span>
<a name="l00016"></a>00016 <span class="comment">/* Includes                                                                  */</span>
<a name="l00017"></a>00017 <span class="comment">/*****************************************************************************/</span>
<a name="l00018"></a>00018 <span class="preprocessor">#include &lt;<a class="code" href="osDataType_8h.html" title="general data type definition .">osAdaption/osDataType.h</a>&gt;</span>
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="preprocessor">#ifdef _cplusplus</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span>{
<a name="l00022"></a>00022 <span class="preprocessor">#endif   </span>
<a name="l00023"></a>00023 <span class="preprocessor"></span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="comment">/*****************************************************************************/</span>
<a name="l00026"></a>00026 <span class="comment">/* External Definition（Constant and Macro )                                 */</span>
<a name="l00027"></a>00027 <span class="comment">/*****************************************************************************/</span>
<a name="l00029"></a><a class="code" href="RFStream_8h.html#a21b94a6b85272ff4598d7e49ade5f21c">00029</a> <span class="preprocessor">#define STREAM_ID_LEN_MAX 15</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span>
<a name="l00031"></a><a class="code" href="RFStream_8h.html#a37dff262d871b782c90fcbc70900938f">00031</a> <span class="preprocessor">#define STREAM_UUID_LEN_MAX 63</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span>
<a name="l00033"></a><a class="code" href="RFStream_8h.html#a328a8e353a33188c931ca15dc5f64929">00033</a> <span class="preprocessor">#define STREAM_TAGLIST_LEN_MAX 63</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00035"></a><a class="code" href="RFStream_8h.html#a36be78abc6153060bd51c16ad92d2218">00035</a> <span class="preprocessor">#define STREAM_UNIT_LEN_MAX 15</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span>
<a name="l00037"></a><a class="code" href="RFStream_8h.html#a3ec97482da2e5c6460b3051a21cf21e7">00037</a> <span class="preprocessor">#define STREAM_UNITSYMBOL_LEN_MAX 15</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00039"></a>00039 
<a name="l00044"></a><a class="code" href="RFStream_8h.html#a4d9e8daf43277e33339a4ea8b97e0e4a">00044</a> <span class="preprocessor">#define STREAMINFO_MASK_ID  0x0001</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span>
<a name="l00046"></a><a class="code" href="RFStream_8h.html#a2df1ec7621baf1eb53376465bb20b053">00046</a> <span class="preprocessor">#define STREAMINFO_MASK_TAG 0x0002</span>
<a name="l00047"></a>00047 <span class="preprocessor"></span>
<a name="l00048"></a><a class="code" href="RFStream_8h.html#a007f834b5c57216293c693f4d499a60a">00048</a> <span class="preprocessor">#define STREAMINFO_MASK_UINT    0x0004</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span>
<a name="l00050"></a><a class="code" href="RFStream_8h.html#acf9a735b03685cb80d9cc918085462e2">00050</a> <span class="preprocessor">#define STREAMINFO_MASK_UNITSYMBOL  0x0008</span>
<a name="l00051"></a>00051 <span class="preprocessor"></span>
<a name="l00052"></a><a class="code" href="RFStream_8h.html#aa97c137ec180c58a1f322fdcd1d90073">00052</a> <span class="preprocessor">#define STREAMINFO_MASK_ALL 0xFFFF</span>
<a name="l00053"></a>00053 <span class="preprocessor"></span>
<a name="l00055"></a>00055 <span class="comment">/*****************************************************************************/</span>
<a name="l00056"></a>00056 <span class="comment">/* External Structures, Enum and Typedefs                                    */</span>
<a name="l00057"></a>00057 <span class="comment">/*****************************************************************************/</span>
<a name="l00061"></a><a class="code" href="structRFStreamConfig.html">00061</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00062"></a>00062 {
<a name="l00064"></a><a class="code" href="structRFStreamConfig.html#a2a5669fabe8a6dd5f9d7fb1d7f3e6a15">00064</a>     int8 streamID[<a class="code" href="RFStream_8h.html#a21b94a6b85272ff4598d7e49ade5f21c">STREAM_ID_LEN_MAX</a> + 1];
<a name="l00066"></a><a class="code" href="structRFStreamConfig.html#a1238a1a5d6e8a32b3789532f25518c94">00066</a>     int8 streamTagList[<a class="code" href="RFStream_8h.html#a328a8e353a33188c931ca15dc5f64929">STREAM_TAGLIST_LEN_MAX</a> + 1];
<a name="l00068"></a><a class="code" href="structRFStreamConfig.html#a80caa333ab74906535607d51244d47c4">00068</a>     int8 unit[<a class="code" href="RFStream_8h.html#a36be78abc6153060bd51c16ad92d2218">STREAM_UNIT_LEN_MAX</a> + 1];
<a name="l00070"></a><a class="code" href="structRFStreamConfig.html#ac0bdae98f01bdddbbc5f6a073dd95c63">00070</a>     int8 unitSymbol[<a class="code" href="RFStream_8h.html#a3ec97482da2e5c6460b3051a21cf21e7">STREAM_UNITSYMBOL_LEN_MAX</a> + 1];
<a name="l00071"></a>00071 } <a class="code" href="structRFStreamConfig.html" title="数据流配置信息结构体定义">RFStreamConfig</a>, *<a class="code" href="structRFStreamConfig.html" title="数据流配置信息结构体定义">pRFStreamConfig</a>;
<a name="l00072"></a>00072 
<a name="l00076"></a><a class="code" href="structRFStreamInfo.html">00076</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00077"></a>00077 {
<a name="l00079"></a><a class="code" href="structRFStreamInfo.html#a4b2f10d1eff33fc531396942f6f7bc89">00079</a>     <a class="code" href="structRFStreamConfig.html" title="数据流配置信息结构体定义">RFStreamConfig</a> <a class="code" href="structRFStreamInfo.html#a4b2f10d1eff33fc531396942f6f7bc89">config</a>;
<a name="l00081"></a><a class="code" href="structRFStreamInfo.html#acf2617c4a70ee3413b6b70f78de28cb4">00081</a>     uint32 <a class="code" href="structRFStreamInfo.html#acf2617c4a70ee3413b6b70f78de28cb4">cTime</a>;
<a name="l00083"></a><a class="code" href="structRFStreamInfo.html#a589afa43879507bdabfceedeb0c78d38">00083</a>     uint32 <a class="code" href="structRFStreamInfo.html#a589afa43879507bdabfceedeb0c78d38">uTime</a>;
<a name="l00085"></a><a class="code" href="structRFStreamInfo.html#a2fd0b3feac7bfee17203e4a2476c1800">00085</a>     int8 streamUUID[<a class="code" href="RFStream_8h.html#a37dff262d871b782c90fcbc70900938f">STREAM_UUID_LEN_MAX</a>];
<a name="l00086"></a>00086 } <a class="code" href="structRFStreamInfo.html" title="数据流属性结构体定义">RFStreamInfo</a>, *<a class="code" href="structRFStreamInfo.html" title="数据流属性结构体定义">pRFStreamInfo</a>;
<a name="l00087"></a>00087 <span class="comment">/*****************************************************************************/</span>
<a name="l00088"></a>00088 <span class="comment">/* External Function Prototypes                                              */</span>
<a name="l00089"></a>00089 <span class="comment">/*****************************************************************************/</span>
<a name="l00099"></a>00099 int32 <a class="code" href="RFStream_8h.html#a3e517d75af61a368b137a2022f0ee0be" title="创建数据流">RFStream_Create</a>(<a class="code" href="structRFStreamConfig.html" title="数据流配置信息结构体定义">RFStreamConfig</a> *streamConfig, int8 *APIKey, int8 *streamUUID);
<a name="l00100"></a>00100 
<a name="l00112"></a>00112 int32 <a class="code" href="RFStream_8h.html#a1ef09679745061f234e7612f4e586e4b" title="更新数据流信息">RFStream_UpdateInfo</a>(int8 *streamID, int8 *APIKey, <a class="code" href="structRFStreamConfig.html" title="数据流配置信息结构体定义">RFStreamConfig</a> *streamConfig, uint32 updateFlag);
<a name="l00113"></a>00113 
<a name="l00126"></a>00126 int32 <a class="code" href="RFStream_8h.html#a70955d4ff2e0efc386f35b56d8fc95d8" title="查询数据流信息，只限本设备的数据流">RFStream_View</a>(int8 *streamIDList, int8 *APIKey, <a class="code" href="structRFStreamInfo.html" title="数据流属性结构体定义">RFStreamInfo</a> **streamList);
<a name="l00127"></a>00127 
<a name="l00136"></a>00136 int32 <a class="code" href="RFStream_8h.html#a22f99b5d89ba41eb74cfbd4804702d99" title="删除指定数据流">RFStream_Delete</a>(int8 *APIKey, int8 *streamID);
<a name="l00137"></a>00137 
<a name="l00138"></a>00138 
<a name="l00139"></a>00139 <span class="preprocessor">#ifdef _cplusplus</span>
<a name="l00140"></a>00140 <span class="preprocessor"></span>}
<a name="l00141"></a>00141 <span class="preprocessor">#endif   </span>
<a name="l00142"></a>00142 <span class="preprocessor"></span>
<a name="l00143"></a>00143 <span class="preprocessor">#endif</span>
<a name="l00144"></a>00144 <span class="preprocessor"></span>
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>数据结构</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>文件</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>变量</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>枚举</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>枚举值</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>宏定义</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated at 2016年六月3日 星期五 09:08:32 for RestfulLinux by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
